package ooday01;

public class ConsDemo {
    public static void main(String[] args) {
        // 创建对象
        Student zg = new Student();
        // 给对象成员变量赋值 有参数构造方法
        zg.name = "张光";
        zg.age = 23;
        zg.className = "jsd2405";
        zg.stuId = "002";
        zg.sayHi();

        //给对象成员变量赋值 无参数构造方法
        //调用Student中的成员方法
        Student ll = new Student("李林",24,"jsd2406","003");
        ll.sayHi();
        Student zl = new Student("赵亮",45,"jsd2406","004");
        zl.sayHi();

    }
}
